const arr = [1, 2, 3, 4];
const s: symbol = Symbol();
const foo: object = new Set();
// const tuple: [number];

enum PostStutus {
  Dreft,
  U,
  p,
}
console.log(PostStutus.U);

function func(a: number, b: number = 10): number {
  return a + b;
}
func(1, 3);
func(2);
// func(2, 2, 3);
console.log(arr.includes(5));

interface Obj {
  title: string;
  kayw: number;
  [prop: string]: any;
}

function p(params: Obj) {
  console.log(params.title);
}
// p({ title: 'sdf', kayw: 23 });

const a: [Obj, number] = [{ title: 'sdf', kayw: 1, sd: true }, 1];

// @flow

function sum(a: number, b: number) {
  return a + b;
}

sum(100, 100);

// sum('100', '100')

// sum('100', 100)
